<div class="isi">
        <?php 
            $atr=array('id'=>'formID',
                    'class'=>'formular');
            echo form_open('admin_user/simpan', $atr);
        ?> 
            <input type="hidden" size="10" name="id" id="id"  value="<?php echo $id ?>" />
            <table width="100%" >
                <tr>
                    <td width="15%"><p> Nama User </p> </td>
                    <td><p> : </p> </td>
                    <td> <input type="text" size="20" name="nama_user" id="nama_user" class="validate[required,minSize[4]] text-input" value="<?php echo $nama_user ?>" /> </td>
                </tr>         
                <?php
                    if($id == ""){
                ?>
                <tr>
                    <td width="15%"><p> Password </p> </td>
                    <td><p> : </p> </td>
                    <td> <input type="password" size="20" name="password" id="password" class="validate[required,minSize[4]] text-input" /> </td>
                </tr>        
                <tr>
                    <td width="15%"><p> Re-Password </p> </td>
                    <td><p> : </p> </td>
                    <td> <input type="password" size="20" name="password" id="passwords" class="validate[required,equals[password]] text-input"  /> </td>
                </tr>  
                <?php
                    }
                ?>
                <tr>
                    <td width="15%"><p> Akses </p> </td>
                    <td><p> : </p> </td>
                    <td> 
                        <select name="akses" id="akses">
                        <?php 
                            if($akses){
                                echo "<option value='1' selected>Administrator</option>";
                            }
                            else{
                                echo "<option value='1'>Administrator</option>";
                            }
                        ?>
                        </select>    
                    </td>
                </tr>
                <tr>
                    <td width="15%"><p> Status </p> </td>
                    <td><p> : </p> </td>
                    <td> 
                        <select name="status" id="status">
                        <?php 
                            if($status){
                                echo "<option value='1' selected>Aktif</option>";
                                echo "<option value='0'>Pasif</option>";
                            }
                            else{
                                echo "<option value='1'>Akrif</option>";
                                echo "<option value='0' selected>Pasif</option>";                                
                            }
                        ?>
                        </select>    
                    </td>
                </tr>                
            </table>
            <br/>
            <?php  echo anchor("admin_user","Kembali","class='button' style='color:#f8f8f8'") ?>
            <input type="submit" value="         Simpan       " class="button"/>
            <div class="clear"></div>
    
        </form>
   
</div>